//
//  AddFriendTableViewCell.m
//  IMDome
//
//  Created by 崔志伟 on 2020/8/22.
//  Copyright © 2020 czw. All rights reserved.
//

#import "AddFriendTableViewCell.h"
#import "UserModel.h"

@implementation AddFriendTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)dataDidChange{
    
    if ([self.data isKindOfClass:[UserModel class]]) {
        UserModel *model = self.data;
        self.nameLabel.text = model.account;
    }
}
- (IBAction)addFriendAction:(id)sender {
    if (self.addFriendBlock) {
        self.addFriendBlock();
    }
}


@end
